package org.deltaset.secured.dashboard;

import java.util.ArrayList;
import java.util.List;
import javax.annotation.ManagedBean;
import org.springframework.context.annotation.Scope;
import org.springframework.web.context.WebApplicationContext;

@ManagedBean
@Scope(WebApplicationContext.SCOPE_SESSION)
public class CreateBookBean {  
  
    private Book book = new Book();  
      
    private List<Book> books = new ArrayList<Book>();  
  
    public String reinit() {  
        book = new Book();  
          
        return null;  
    }  
  
    public Book getBook() {  
        return book;  
    }  
  
    public void setBook(Book book) {  
        this.book = book;  
    }  
  
    public List<Book> getBooks() {  
        return books;  
    }  
  
    public void setBooks(List<Book> books) {  
        this.books = books;  
    }  
}  